package org.tang.domain;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.data.mongodb.core.mapping.MongoId;

import java.util.List;

/**
 * @Author: tang
 * @Description:
 * @Date 2025/8/13 14:10
 */
@Data
@Document(collection = "test")
public class MyTest {

    @MongoId
    private Object _id;

    @Field("name")
    private String name;

    private String type;

    private String item;

    private Integer qty;

    private Size size;

    private String status;

    private List<String> tags;

    @Data
    public static class Size{
        private Float h;
        private Float w;
        private String uom;
    }

}
